package com.zliuyno.rpcdemo.transport;

import io.netty.channel.socket.nio.NioSocketChannel;

public class ClientPool {
    NioSocketChannel[] clients;
    Object[] lock;

    ClientPool(int size) {
        clients = new NioSocketChannel[size];      //inti 连接是空的
        lock = new Object[size];    //锁是可以初始化的
        for (int i = 0; i < size; i++) {
            lock[i] = new Object();
        }

    }
}